package com.example.myapplication.ui.home;

import com.google.gson.annotations.SerializedName;

public class Banner {
    @SerializedName("id")
    private String id;

    @SerializedName("imageUrl")
    private String imageUrl;

    @SerializedName("title")
    private String title;

    @SerializedName("courseId") // 新增：对应的课程ID
    private String courseId;

    public Banner(String id, String imageUrl, String title, String courseId) {
        this.id = id;
        this.imageUrl = imageUrl;
        this.title = title;
        this.courseId = courseId;
    }

    // Getters
    public String getId() { return id; }
    public String getImageUrl() { return imageUrl; }
    public String getTitle() { return title; }
    public String getCourseId() { return courseId; } // 新增getter
}